package com.example.g5project.customer.model.param;

import com.example.g5project.customer.model.result.Result;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class CustomerEditParam extends CustomerRegisterParam {

    private Integer customerId;

    public Result checkEditParam() {
        if (customerId <= 0) {
            return Result.error("id非法");
        }
        return super.check();
    }
}
